package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactRelationDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactRelationVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactRelationDto2VoConverter {

    ContactRelationDto2VoConverter INSTANCE = Mappers.getMapper(ContactRelationDto2VoConverter.class);

    ContactRelationDto vo2dto(ContactRelationVo vo);

    List<ContactRelationDto> vo2dto(List<ContactRelationVo> voList);

    @InheritInverseConfiguration
    ContactRelationVo dto2vo(ContactRelationDto dto);

    @InheritInverseConfiguration
    List<ContactRelationVo> dto2vo(List<ContactRelationDto> dtoList);

}
